package es.ats.codington.spring.controllers;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Welcome Controller
 *
 */
@Controller
public class WelcomeController{  

	/**
	 * This controller defines the homepage (Login page).
	 * @param request
	 * @return
	 */
	@RequestMapping("*")
	public String hello(HttpServletRequest request) {
	    return "NewCodington_visitorLogin";
	}
	
	/**
	 * 
	 * @return
	 */
	@RequestMapping(value = "/welcome.htm")
	public String welcomeController() {
		return "NewCodington_myPortal";
	}
}